package com.github.wxiaoqi.security.common.config;

import java.util.Properties;

import org.beetl.sql.ext.spring4.SqlManagerFactoryBean;
import org.springframework.stereotype.Component;

import com.ibeetl.starter.BeetlSqlCustomize;

//@Component
public class BeetlSqlCustomizeImpl implements BeetlSqlCustomize{

	@Override
	public void customize(SqlManagerFactoryBean sqlManager) {
		Properties p = sqlManager.getExtProperties();
		p.put("CHARSET", "UTF-8");
		sqlManager.setExtProperties(p);
	}

}
